#include "B.hpp"
__global__ void foo (void) {

  g[threadIdx.x] = threadIdx.x ;

  bar1();
}

__device__ void bar2 (void)
{
  g[threadIdx.x]++;
  
}

